Repository navigation
docs(skills): objectstack-ai teaches the knowledge source split key and names the keys retired beside it - #37334
Conversation
…nd names the keys retired beside it Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbYY43RED8SphBLGpAy
|
repo:cloud#1 · os-warren · session_01JQwxbW5anP6GDaVi5LKi2U 维护者速读
席位意见:建议批准。说明书总长度有上限且已用满,这次为了加新内容,删掉了同一文件里八处重复的话(每一处我都核过,别处仍有同样的意思,AI 不会少学到规则),总长度反而少了 1 个单位,没有申请放宽上限。删到了知识源一节之外,超出了认领时写的范围,属于长度规则本身要求的做法,记为已接受的偏差。 席位核对ACCEPT L1 of record, PR #37334, card #37292. Ready / hand-off waits on the head's check-runs (12 still in progress at read time). Head-sha:
Contract reviewServed-tier: Governing text: ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Findings:
No must-fix, no should-fix: this is the final round for this head. Implemented-by: VERDICT: PASS |
|
repo:cloud#1 · os-warren · session_01JQwxbW5anP6GDaVi5LKi2U Hand-off for approval (Tier H,
|
Requested by Warren · project thread
Fixes #37292
Clause-②: no
Metadata-protocol: none
Skills-docs: this PR is the skills-docs half (
skills/objectstack-ai); PR #37287 shipped thesplitkey and named this card维护者速读
What changes
skills/objectstack-ai/SKILL.md, Knowledge Sources (RAG):objectrow of the source table gainssplit?, and a new passage replaces the closing note that said chunking is not platform metadata (PR feat(service-knowledge)!: one splitter (whole / recursive / markdown, Chinese-aware), the chunk channel and the split key; KnowledgeChunk.metadata and knowledge.chunk_overlap retired #37287 made that false). It teachessplit: { strategy, maxChars?, minChars? }on object sources only:recursive(default) for prose,markdownfor documents with headings (each passage embedded with its heading path),wholefor short records only, because a document over the embedder's input budget is removed from the index and reported, never truncated.maxCharsoverrides the Target chunk size setting (knowledge.chunk_target, else 800), the embedder's input limit can lower it, andwholeignores it;minCharsdefaults to 200. Changingsplitre-splits a document only when it next changes.capabilities.chunks(memory);ragflowdoes not, receives whole documents, andsplithas no effect on it.knowledge.chunk_overlapsetting (400 UNKNOWN_KEY; passages never overlap) andKnowledgeChunk.metadata(parse error; a passage takes its document'smetadata).Paid for by deleting restatement in the same file; the token ceiling is unchanged (6801, the file measures 6800). Deleted: the pitfall "Indexing everything" (the
objectrow's Hygiene column says it); the "Skills are your entry point" paragraph (the frontmatter, thetoolsrow and Platform agents say it); the incident sentence afterai-skill-tool-unresolved; the sentence on whatos validateconfirms; the App AI Blueprint registration-row clause repeating three facts stated in their own sections; four clauses repeating the sentence beside them (Tool metadata, Platform agents, Wiring, Actions as AI Tools).evals/skills-tools-knowledge.json:split: { strategy: 'markdown', maxChars: 600 }and the overlap declined. Assertions: must containsplit,strategy,markdown,maxChars; must not containchunkSize,chunkOverlap,overlap: 100.expected_outputno longer says chunking is adapter config; it writes nosplit, since that adapter receives whole documents.Changeset
.changeset/37292-skill-knowledge-split.md:@objectstack/skillspatch.Out of scope, left for their cards: the
contentFields/id/'*'/embedding/vectorStore/file/http/adapterConfigteaching and the example block (#37310, row 5b, after #37306), and theragflowmentions (#37004).Why
PR #37287 (#37098) added the source's
splitkey and retiredKnowledgeChunk.metadataandknowledge.chunk_overlap. The skill an AI reads to author a knowledge source did not mention any of them and still said chunking is not platform metadata, so an agent would never setsplitand could still write the overlap setting.Verification
Every claim in the new passage rests on:
packages/spec/src/ai/knowledge-source.zod.ts(KnowledgeSplitSchema,ObjectKnowledgeSourceSchema.split),packages/spec/src/ai/knowledge-document.zod.ts(theKnowledgeChunk.metadatatombstone),content/docs/protocol/knowledge.mdx§3.5 and the adapter-contract paragraph above it,.changeset/37098-knowledge-splitter.md(thechunk_overlaprefusal),packages/plugins/knowledge-memory/src/index.ts:46(capabilities = { chunks: true };knowledge-ragflowdeclares none).Skills size readings (
node scripts/check-skills-token-ratchet.mjs, tokens = ceil(utf8 bytes / 4)):skills/objectstack-ai/SKILL.mdlinesskills/objectstack-ai/SKILL.mdtokens (ceiling 6801)skills/*/SKILL.mdlinesThe bundle grows by 303 tokens, all in the unratcheted eval fixture (2140 to 2444); ratcheted authored text drops by 1.
Local gates at 6fb18c1
node scripts/pm/dispatch-gates.mjs --commandsderived 49 commands. 41 ran locally, all exit 0, includingcheck-skills-token-ratchet(gate and--self-test),@objectstack/spec check:skill-docs,check:skill-links,check:skill-identifier-liveness,check:skill-compatibility,check:skill-frame-sync,check:doc-authoring,check:nul-bytes,check-empty-changeset,check-changeset-no-major,check-adr-0087-registration,check:pm-governed-merges.NOT MEASURED locally, left to CI:
@objectstack/lint check:doc-formula-expressions(exit 3, prerequisite: needs@objectstack/formulaand@objectstack/lintbuilt; nothing measured), and seven families that read builtdist/output (check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closure,check:published-files,check:sourcemap-no-sources-content,check:driver-memory-census,check:corpus-claim-drift). The diff touches no package source.No ablation: the change is docs and an eval fixture; no tested behaviour moved.
Two-minute check: read Knowledge Sources (RAG) in
skills/objectstack-ai/SKILL.mdand compare the Splitting passage withcontent/docs/protocol/knowledge.mdx§3.5.Acceptance notes
Human Minimum
packages/specholds no runtime logic.pnpm lintpasses. (repo-wide lint is CI's run; the diff touches only Markdown and JSON)main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01JQwxbYY43RED8SphBLGpAy
Generated by Claude Code